package com.javiercp.ayudaapp.location;

import org.simpleframework.xml.Root;
import org.simpleframework.xml.Element;

@Root
public class LocationData {

	@Element(data=true)
	private boolean mhasAltitude;
	
	@Element(data=true)
	private double maltitude;
	
	@Element(data=true)
	private double mlatitude;
	
	@Element(data=true)
	private double mlongitude;
	
	@Element(data=true)
	private boolean mhasSpeed;
	
	@Element(data=true)
	private float mspeed;
	
	@Element(data=true)
	private boolean mhasBearing;
	
	@Element(data=true)
	private float mbearing;
	
	@Element(data=true)
	private boolean mhasAccuracy;
	
	@Element(data=true)
	private float maccuracy;
	
	@Element(data=true)
	private long mtime;

	@Element(data=true)
	private String mprovider;

	
	public LocationData() {
		super();
	}
	
	public LocationData(double altitude, double latitude, double longitude,
			float speed, float bearing, float accuracy, long time, String provider,
			boolean hasAltitude, boolean hasSpeed, boolean hasBearing, boolean hasAccuracy) {
		super();
		this.maltitude = altitude;
		this.mlatitude = latitude;
		this.mlongitude = longitude;
		this.mspeed = speed;
		this.mbearing = bearing;
		this.maccuracy = accuracy;
		this.mtime = time;
		this.mprovider = provider;
		
		this.mhasAltitude = hasAltitude;
		this.mhasBearing = hasBearing;
		this.mhasSpeed = hasSpeed;
		this.mhasAccuracy = hasAccuracy;
	}
	
	public double getAltitude() {
		return maltitude;
	}

	public void setAltitude(double altitude) {
		this.maltitude = altitude;
	}

	public double getLatitude() {
		return mlatitude;
	}

	public void setLatitude(double latitude) {
		this.mlatitude = latitude;
	}

	public double getLongitude() {
		return mlongitude;
	}

	public void setLongitude(double longitude) {
		this.mlongitude = longitude;
	}

	public float getSpeed() {
		return mspeed;
	}

	public void setSpeed(float speed) {
		this.mspeed = speed;
	}

	public float getBearing() {
		return mbearing;
	}

	public void setBearing(float bearing) {
		this.mbearing = bearing;
	}

	public float getAccuracy() {
		return maccuracy;
	}

	public void setAccuracy(float accuracy) {
		this.maccuracy = accuracy;
	}

	public long getTime() {
		return mtime;
	}

	public void setTime(long time) {
		this.mtime = time;
	}
	
	public String getProvider() {
		return mprovider;
	}

	public void setProvider(String provider) {
		this.mprovider = provider;
	}

	public boolean getHasAltitude() {
		return mhasAltitude;
	}

	public void setHasAltitude(boolean hasAltitude) {
		this.mhasAltitude = hasAltitude;
	}

	public boolean getHasSpeed() {
		return mhasSpeed;
	}

	public void setHasSpeed(boolean hasSpeed) {
		this.mhasSpeed = hasSpeed;
	}

	public boolean getHasBearing() {
		return mhasBearing;
	}

	public void setHasBearing(boolean hasBearing) {
		this.mhasBearing = hasBearing;
	}
	
	public boolean getHasAccuracy() {
		return mhasAccuracy;
	}

	public void setHasAccuracy(boolean hasAccuracy) {
		this.mhasAccuracy = hasAccuracy;
	}
}
